import { AllowAnon } from '@/decorators/allow-anon.decortors';
import { Controller, Get } from '@nestjs/common';
import { OssService } from './oss.service';

@Controller('oss')
export class OssController {
  constructor(private ossServic: OssService) {}

  @Get('/upload')
  @AllowAnon()
  async upload() {
    return this.ossServic.upload();
  }

  // 添加
  @Get('/Insert')
  @AllowAnon()
  async Insert() {
    return this.ossServic.Insert();
  }
  // 删除
  @Get('/Delete')
  @AllowAnon()
  async Delete() {
    return this.ossServic.Delete();
  }
  // 查找
  @Get('/Cha')
  @AllowAnon()
  async Cha() {
    return this.ossServic.Cha();
  }

  // 修改
  @Get('/Update')
  @AllowAnon()
  async Update() {
    return this.ossServic.Update();
  }
}
